GraphRequestConverter

open class GraphRequestConverter(methodAnnotations: Array<out Annotation>, graphProcessor: AbstractGraphProcessor, gson: Gson) : Converter<QueryContainerBuilder, RequestBody>

GraphQL request body converter and injector, uses method annotation for a given retrofit method

Constructors

Link copied to clipboard
constructor(methodAnnotations: Array<out Annotation>, graphProcessor: AbstractGraphProcessor, gson: Gson)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun convert(containerBuilder: QueryContainerBuilder): RequestBody

Converter for the request body, gets the GraphQL query from the method annotation and constructs a GraphQL request body to send over the network.